FindResult Class

A single match of a find operation. A result knows the collection its content belongs to, so the matched content can be replaced or removed in place.

Definition

Namespace: Independentsoft.Office.Odf
Assembly: Independentsoft.Calc (in Independentsoft.Calc.dll) Version: 3.0.520.1+c6c593d5629a051e0af021b238c5d69d764f9686
C#
public class FindResult
Inheritance
Object    FindResult

Properties

AttributedText Gets the innermost span the match starts in or null if the matched text is not contained in a span.
AttributedTexts Gets all spans the match spans.
Element Gets the first content element of the match, usually a Text object.
Heading Gets the heading the match belongs to or null if the match belongs to a paragraph.
Length Gets the number of matched characters.
Paragraph Gets the paragraph the match belongs to or null if the match belongs to a heading.
Start Gets the index of the match in the text of the paragraph.
Story Gets the part of the document the match was found in.
Text Gets the matched text.
TextHost Gets the Paragraph or the Heading the match belongs to.

Methods

Delete Deletes the matched text.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
Replace(AttributedText) Replaces the matched text with the specified span. The text before and after the match keeps its formatting.
Replace(Heading) Replaces the heading containing the match with the specified heading.
Replace(IListAttributedText) Replaces the matched text with the specified spans.
Replace(IListIParagraphContent) Replaces the matched text with the specified paragraph content, for example an image, a tab, a line break, a field or a hyperlink.
Replace(Paragraph) Replaces the paragraph containing the match with the specified paragraph. The properties of the replaced paragraph are preserved if the new paragraph has no own properties and PreserveFormatting is true.
Replace(String) Replaces the matched text with the specified text. The paragraph, its style and all other content of the paragraph, for example spans, images or notes, remain unchanged.
ToString Returns a string that represents the current FindResult.
(Overrides ObjectToString)

See Also